import unittest
from one.Day16zy.login1 import send_mail,log_set
from XTestRunner import HTMLTestRunner
if __name__ == '__main__':
    log_set()


    suite=unittest.defaultTestLoader.discover(start_dir='/', pattern='TestCase.py')


    with open('baogao.html', 'wb') as f:
        runner=HTMLTestRunner(stream=f,title='测试报告',rerun=1)
        runner.run(suite)

        send_mail(['baogao.html','gouwuche.txt'])